﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Input;

namespace AliyunMobileTestTechnology.ViewModel.Commands
{
    public class SvnUpdateCommand:ICommand
    {
        private RepositoriesViewModel repositories;

        public SvnUpdateCommand(RepositoriesViewModel repositoriesVM) 
        {
            repositories = repositoriesVM;
        }

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        public void Execute(object parameter)
        {
            repositories.UpdateWorkingCopy(parameter.ToString());
        }
    }
}
